package com.jinbiao.quasar.enums;

import lombok.Data;

public enum DeptDataPermissionType {
    ALL("deptDataPermissionTypeAll","全部数据"),
    USER("deptDataPermissionTypeUser","用户数据"),
    DEPT("deptDataPermissionTypeDept","部门数据"),
    DEPT_AND_CHILDREN("deptDataPermissionTypeDeptAndChildren","部门及其子部门数据"),
    CUSTOM("deptDataPermissionTypeCustom","自定义数据范围"),
    NO_CONFIG("","未配置");
    private String code;
    private String name;

    DeptDataPermissionType(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
